package com.chzu.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chzu.mapper.StudentInfoMapper;
import com.chzu.pojo.StudentInfo;
import com.chzu.pojo.vo.StudentInfoByOpenIdVo;
import com.chzu.service.StudentInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author lz
 * @Version 1.0
 * @Company 滁州大健康与养老产业研究院
 * @ClassName StudentInfoServiceImpl
 * @Description TODO
 * @Date 2022/02/23 23:10
 */
@Service
public class StudentInfoServiceImpl extends ServiceImpl<StudentInfoMapper, StudentInfo> implements StudentInfoService {

    @Resource
    private StudentInfoMapper studentInfoMapper;

    /**
     * 根据OpenId获取用户具体信息
     * @param openId 微信用户唯一标识
     * @return
     */
    @Override
    public StudentInfoByOpenIdVo getStudentInfoByOpenId(String openId) {
        return studentInfoMapper.getStudentInfoByOpenId(openId);
    }
}
